<?php
define('ROOT_DIR', $_SERVER['DOCUMENT_ROOT'].'/');
$tempsets = json_decode(file_get_contents('php://input'), true);
$fp = fopen(ROOT_DIR.'plugin/others/json/template.json', 'w');
fwrite($fp, json_encode($tempsets));
fclose($fp);
echo json_encode(array('status' => 'ok'));
?>
